    <footer class="tm-footer">
      <div class="container-fluid">
        <div class="row">
          <div class="col-xs-12 tm-copyright-col">
            <p class="tm-copyright-text">Copyright 2016 Your Company Name. More Templates
              <a href="http://www.cssmoban.com/" target="_blank" title="模板之家">模板之家</a>- Collect from
              <a href="http://www.cssmoban.com/" title="网页模板" target="_blank">网页模板</a></p>
          </div>
        </div>
      </div>
    </footer>
    <!-- load JS files -->
    <script src="js/jquery-1.11.3.min.js"></script>
    <!-- jQuery (https://jquery.com/download/) -->
    <script src="js/tether.min.js"></script>
    <!-- Tether for Bootstrap, http://stackoverflow.com/questions/34567939/how-to-fix-the-error-error-bootstrap-tooltips-require-tether-http-github-h -->
    <script src="js/bootstrap.min.js"></script>
    <!-- Bootstrap (http://v4-alpha.getbootstrap.com/) -->
    
    </body>
</html>

<script type="text/javascript">
  $(function(){
    $.ajax({
      url:'api/search.php',
      type:'get',
      dataType:'json',
      data:{action:'common_nav',limit:4},
      success:function(data){
        var data = data.data;
        var navStr = '';
        $.each(data,function(k,v){
          //判断是否是当前页
          var isActive = '';
          var link = v['nav_link'];
          //获取当前页面地址
          var path = "<?php echo $_SERVER['PHP_SELF']; ?>";
          //对比是否是当前
          if(path.indexOf(link) != -1){
            isActive = 'active';
          }
          navStr += '<li class="nav-item '+isActive+'">'
          navStr += '        <a href="'+v['nav_link']+'" class="nav-link">'+v['nav_name']+'</a>'
          navStr += '      </li>'
        });
        $('#nav').empty().append(navStr);

      }
    });

    $.ajax({
      url: 'api/search.php',
      type: 'get',
      dataType: 'json',
      data: { action: 'common_setting', limit: 4 },
      success: function(data) {
        var data = data.data;
        $('#logo').empty().append(data.logo.set_value);
        $('#copyright').empty().append(data.copyright.set_value);
        $('#introl').empty().append(data.introl.set_value);

      }
    })
  })

</script>